<?php
/**
 *  💡 免责声明：本软件不得用于商业用途，仅做学习交流
 *  ⚠️ 权利声明：本软件由版权人提供产品技术支持
 *  📅 项目编号：NX2025-0135
 */
use App\Api\Controllers\Auths\AccountApi;
use App\Api\Controllers\Auths\AdvanceCardApi;
use App\Api\Controllers\Auths\BeanApi;
use App\Api\Controllers\Auths\DataAnalysisApi;
use App\Api\Controllers\Auths\DividendApi;
use App\Api\Controllers\Auths\GroupApi;
use App\Api\Controllers\Auths\ImApi;
use App\Api\Controllers\Auths\OrderApi;
use App\Api\Controllers\Auths\PaymentApi;
use App\Api\Controllers\Auths\PointApi;
use App\Api\Controllers\Auths\ProductApi;
use App\Api\Controllers\Auths\RecordApi;
use App\Api\Controllers\Auths\ShipmentApi;
use App\Api\Controllers\Auths\UserApi;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Route::group([
    'namespace' => '',
    'middleware' => [],
], function (Router $router) {
    $router->post('order_placement', [ProductApi::class, 'orderPlacement'])->name('订单下单');
    $router->post('pay_place_order', [ProductApi::class, 'payAndPlaceAnOrder'])->name('商品支付下单');
    $router->post('get_product_order', [OrderApi::class, 'getProductOrder'])->name('商品订单');
    $router->post('get_product_order_details', [OrderApi::class, 'getProductOrderDetails'])->name('商品订单详情');
    $router->post('cart_order_placement', [ProductApi::class, 'cartOrderPlacement'])->name('购物车下单');
    $router->post('recharge_application', [PaymentApi::class, 'rechargeApplication'])->name('充值申请');
    $router->post('recharge_list', [PaymentApi::class, 'rechargeList'])->name('充值申请列表');

    $router->post('purchase_bean_package', [BeanApi::class, 'purchaseBeanPackage'])->name('购买礼包');
    $router->post('get_my_package', [BeanApi::class, 'getMyPackage'])->name('我的礼包');

    $router->post('get_user', [UserApi::class, 'getUser'])->name('我的信息');
    $router->post('get_address', [UserApi::class, 'getAddress'])->name('获取收货地址');
    $router->post('add_address', [UserApi::class, 'addAddress'])->name('添加收货地址');
    $router->post('set_default_address', [UserApi::class, 'setDefaultAddress'])->name('设置默认收货地址');
    $router->post('modify_address', [UserApi::class, 'modifyAddress'])->name('修改收货地址');
    $router->post('delete_address', [UserApi::class, 'deleteAddress'])->name('删除收货地址');

    $router->post('modify_profilePicture', [UserApi::class, 'modifyProfilePicture'])->name('修改头像');
    $router->post('modify_login_password', [UserApi::class, 'modifyLoginPassword'])->name('修改登录密码');
    $router->post('modify_transaction_password', [UserApi::class, 'modifyTransactionPassword'])->name('修改交易密码');
    $router->post('modify_nick_name', [UserApi::class, 'modifyNickName'])->name('修改昵称');

    $router->post('my_carts', [UserApi::class, 'myCarts'])->name('我的购物车');
    $router->post('add_to_cart', [UserApi::class, 'addToCart'])->name('加入购物车');
    $router->post('delete_cart', [UserApi::class, 'deleteCart'])->name('删除购物车');

    $router->post('notify_count', [UserApi::class, 'notifyCount'])->name('消息数量');
    $router->post('get_notify', [UserApi::class, 'getNotify'])->name('我的消息');
    $router->post('read_notify', [UserApi::class, 'readNotify'])->name('标记读取');
    $router->post('read_all_notify', [UserApi::class, 'readAllNotify'])->name('全部读取');
    $router->post('my_fan', [UserApi::class, 'myFan'])->name('我的粉丝');
    $router->post('reward_record', [UserApi::class, 'rewardRecord'])->name('奖励记录');
    $router->post('team_center', [UserApi::class, 'teamCenter'])->name('团队中心');
    $router->post('income_details', [UserApi::class, 'incomeDetails'])->name('收益明细');
    $router->post('bind_bank_card', [UserApi::class, 'bindBankCard'])->name('绑定银行卡');
    $router->post('update_bank_card', [UserApi::class, 'updateBankCard'])->name('更新银行卡');
    $router->post('delete_bank_card', [UserApi::class, 'deleteBankCard'])->name('删除银行卡');
    $router->post('bank_card_list', [UserApi::class, 'BankCardList'])->name('银行卡列表');
    $router->post('default_bank_card', [UserApi::class, 'defaultBankCard'])->name('默认银行卡');
    $router->post('wallet_to_reward', [UserApi::class, 'walletToReward'])->name('钱包转到奖励');
    $router->post('transfer_details', [UserApi::class, 'transferDetails'])->name('转账明细');

    $router->post('withdraw_cash_setting', [UserApi::class, 'withdrawCashSetting'])->name('提现配置');
    $router->post('withdraw_cash', [UserApi::class, 'withdrawCash'])->name('提现申请');
    $router->post('withdraw_cash_record', [UserApi::class, 'withdrawCashRecord'])->name('提现申请记录');

    $router->post('merchant_settlement', [UserApi::class, 'merchantSettlement'])->name('商家入驻');
    $router->post('footprint', [UserApi::class, 'footprint'])->name('足迹');

    $router->post('my_wallet', [DataAnalysisApi::class, 'myWallet'])->name('我的钱包');

    $router->post('group_buying_order', [GroupApi::class, 'groupBuyingOrder'])->name('拼团下单');
    $router->post('group_order_lists', [GroupApi::class, 'groupOrderLists'])->name('拼团订单列表');
    $router->post('consignment_of_goods', [GroupApi::class, 'consignmentOfGoods'])->name('挂售商品');

    $router->post('points_order', [PointApi::class, 'pointsOrder'])->name('积分商品下单');
    $router->post('pay_point_order', [PointApi::class, 'payPointOrder'])->name('积分商品订单支付');
    $router->post('get_point_order', [PointApi::class, 'getPointOrder'])->name('积分商品订单');
    $router->post('get_point_order_details', [PointApi::class, 'getPointOrderDetails'])->name('积分商品订单详情');

    $router->post('get_bean_account', [AccountApi::class, 'getBeanAccount'])->name('KC通证账户');
    $router->post('get_bean_account_transaction', [AccountApi::class, 'getBeanAccountTransaction'])->name('KC通证账户详情');
    $router->post('get_wallet_account', [AccountApi::class, 'getWalletAccount'])->name('钱包账户');
    $router->post('get_wallet_account_transaction', [AccountApi::class, 'getWalletAccountTransaction'])->name('钱包账户详情');
    $router->post('get_point_account', [AccountApi::class, 'getPointAccount'])->name('积分账户');
    $router->post('get_point_account_transaction', [AccountApi::class, 'getPointAccountTransaction'])->name('积分账户详情');
    $router->post('get_reward_account', [AccountApi::class, 'getRewardAccount'])->name('奖励余额');
    $router->post('get_reward_account_transaction', [AccountApi::class, 'getRewardAccountTransaction'])->name('奖励余额详情');
    $router->post('bean_release_daily', [AccountApi::class, 'beanReleaseDaily'])->name('拼单奖励释放记录');
    $router->post('bean_package_release_daily', [AccountApi::class, 'beanPackageReleaseDaily'])->name('大礼包释放记录');

    $router->post('inject_integral_pool', [DividendApi::class, 'InjectIntegralPool'])->name('注入分红金');
    $router->post('get_single_pool', [AccountApi::class, 'getSinglePool'])->name('获取拼单分红金');
    $router->post('get_single_pool_transaction', [AccountApi::class, 'getSinglePoolTransaction'])->name('获取拼单分红金详情');

    $router->post('get_bean_price', [BeanApi::class, 'getBeanPrice'])->name('获取KC通证价格');

    $router->post('sell_bean', [BeanApi::class, 'sellBean'])->name('卖出KC通证');
    $router->post('buy_bean', [BeanApi::class, 'buyBean'])->name('买入KC通证');

    $router->post('trading_hall', [BeanApi::class, 'tradingHall'])->name('交易大厅');
    $router->post('my_deal', [BeanApi::class, 'myDeal'])->name('我的交易');
    $router->post('my_deal_details', [BeanApi::class, 'myDealDetails'])->name('我的交易详情');
    $router->post('cancel_the_transaction', [BeanApi::class, 'cancelTheTransaction'])->name('取消交易');
    $router->post('get_bean_setting', [BeanApi::class, 'getBeanSetting'])->name('KC通证配置');
    $router->post('get_hell_setting', [BeanApi::class, 'getHallSetting'])->name('交易配置');
    $router->post('register_im', [ImApi::class, 'registerIm'])->name('注册im');
    $router->post('get_sign_record', [UserApi::class, 'getSignRecord'])->name('获取签到记录');
    $router->post('user_sign', [UserApi::class, 'userSign'])->name('签到');

    $router->post('get_advance_card_setting', [AdvanceCardApi::class, 'getAdvanceCardSetting'])->name('获取垫付卡配置');
    $router->post('get_my_advance_card', [AdvanceCardApi::class, 'getMyAdvanceCard'])->name('获取我的垫付卡');
    $router->post('advance_card_transactions', [AdvanceCardApi::class, 'getMyAdvanceCardTransactions'])->name('获取我的垫付卡消费记录');
    $router->post('recharge_advance_payment', [AdvanceCardApi::class, 'rechargeAdvancePayment'])->name('充值垫付金');


    $router->post('setting', [UserApi::class, 'setting'])->name('配置');
    $router->post('group_order_record', [RecordApi::class, 'groupOrderRecord'])->name('拼单次数');

    $router->post('product_shipment', [ShipmentApi::class, 'productShipment'])->name('商品发货单');
    $router->post('product_shipment_details', [ShipmentApi::class, 'productShipmentDetails'])->name('商品发货单详情');
    $router->post('confirm_product_shipment', [ShipmentApi::class, 'confirmProductShipment'])->name('确认商品发货单收货');

    $router->post('group_shipment', [ShipmentApi::class, 'groupShipment'])->name('拼团发货单');
    $router->post('group_shipment_details', [ShipmentApi::class, 'groupShipmentDetails'])->name('拼团发货单详情');
    $router->post('confirm_group_shipment', [ShipmentApi::class, 'confirmGroupShipment'])->name('确认拼团发货单收货');

    $router->post('point_shipment', [ShipmentApi::class, 'pointShipment'])->name('积分商品发货单');
    $router->post('point_shipment_details', [ShipmentApi::class, 'pointShipmentDetails'])->name('积分商品发货单详情');
    $router->post('confirm_point_shipment', [ShipmentApi::class, 'confirmPointShipment'])->name('确认积分商品发货单收货');

    $router->post('sales_application', [ShipmentApi::class, 'salesApplication'])->name('售后申请');
    $router->post('sales_application_item', [ShipmentApi::class, 'salesApplicationItem'])->name('售后申请列表');

    $router->post('turning_beans', [UserApi::class, 'turningBeans'])->name('转豆');
    $router->post('bind_an_account', [UserApi::class, 'BindAnAccount'])->name('绑定用户');
    $router->post('select_an_account', [UserApi::class, 'SelectAnAccount'])->name('选择账户');
    $router->post('get_an_account', [UserApi::class, 'getAnAccount'])->name('关联账户列表');
    $router->post('delete_an_account', [UserApi::class, 'deleteAnAccount'])->name('删除关联账户');

    $router->post('systemText', [UserApi::class, 'systemText'])->name('管理员测试');

//    $router->post('inject_bean_pool', [DividendApi::class, 'InjectBeanPool'])->name('注入通证池');
//    $router->post('get_my_divider_account', [DividendApi::class, 'getMyDividerAccount'])->name('我的分红池账户');
//    $router->post('get_my_divider_account_transaction', [DividendApi::class, 'getMyDividerAccountTransaction'])->name('我的分红池账户记录');

    $router->post('exchange_coupon', [AccountApi::class, 'exchangeCoupon'])->name('兑换券');
    $router->post('exchange_coupon_info', [AccountApi::class, 'exchangeCouponInfo'])->name('兑换券详情');



});
